package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;

@Data
@TableName("cart")
public class Cart {
	@TableId
	private Integer id;
	private Integer userID;
	private Integer goodsID;
	private Integer sellerID;
	private Integer num;
	private Boolean selected;
	private double price;
	private double totalPrice;
	private String goodsName;
	private String sellerName;
	private String goodsImgUrl;
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private LocalDate createTime;
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private LocalDate updateTime;
}
